package com.mijie.homi.ns.service;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.concurrent.TimeUnit;

import javax.annotation.PostConstruct;

import net.spy.memcached.MemcachedClient;
import net.spy.memcached.internal.GetFuture;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.mijie.cache.MemcacheBase;
import com.mijie.homi.common.constant.MCKey;

@Service
public class MemcacheService extends MemcacheBase{
	
	@PostConstruct
	public void init(){
		setup(new InetSocketAddress("192.168.0.166", 11212));
	}

	@Override
	public String getPrefix() {
		return MCKey.KEY_PREFIX;
	}
	
}
